<% /* $Id: languages.jsp 99 2010-11-12 20:11:14Z altdotua@gmail.com $ */ %>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ include file="header.jsp" %>

<h2>Перелік компіляторів</h2>
<table border="1">
	<tr>
		<th>#</th>
		<th>ID</th>
		<th>Назва</th>
		<th>DJudgeId</th>
	</tr>
<%
	if (user == null)
	{
		response.sendRedirect(Linker.link("login.jsp?return=" + URLEncoder.encode(request.getRequestURI())));
		return;
	}
	List<LanguageEntry> entries = LanguagesModel.getAllEntries();
	for (LanguageEntry language: entries)
	{
		%>
		<tr>
			<td><%=language.getId() %></td>
			<td><%=language.getSid() %></td>
			<td><%=language.getName() %></td>
			<td><%=language.getDjudgeId() %></td>
		</tr>
		<%
	}
		
%>
</table>


<%@include file="footer.jsp"%>
